export default {
  data() {
    return {
      columns: [],
    };
  },
  mounted() {},
  methods: {
    initTableColumns() {
      let { code } = this.currentTreeNode;
      switch (code) {
        // 标准制定
        case "scientifiAchievements.01":
          this.columns = [
            {
              title: "标准名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "标准类型",
              key: "standardTypeDesc",
            },
            {
              title: "施行日期",
              key: "completedDate",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //   发明专利
        case "scientifiAchievements.02":
          this.columns = [
            {
              title: "专利名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "完成人",
              key: "completedBy",
            },
            {
              title: "授权日期",
              key: "completedDate",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //实用新型专利
        case "scientifiAchievements.03":
          this.columns = [
            {
              title: "专利名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "完成人",
              key: "completedBy",
            },
            {
              title: "授权日期",
              key: "completedDate",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //学术论文
        case "scientifiAchievements.04":
          this.columns = [
            {
              title: "论文题目",
              key: "fileName",
              width: "180",
            },
            {
              title: "期刊名称",
              key: "secondName",
            },
            {
              title: "收录数据库",
              key: "databaseInclusionDesc",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //软件著作权
        case "scientifiAchievements.05":
          this.columns = [
            {
              title: "著作权名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "完成人",
              key: "completedBy",
            },
            {
              title: "登记日期",
              key: "completedDate",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //省部级工艺工法
        case "scientifiAchievements.06":
          this.columns = [
            {
              title: "工法名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "批准文号",
              key: "fileNumber",
            },
            {
              title: "发证单位",
              key: "department",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //省部级科技进步奖
        case "scientifiAchievements.07":
          this.columns = [
            {
              title: "项目名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "奖励名称",
              key: "secondName",
            },
            {
              title: "奖励等级",
              key: "rewardLevelDesc",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //市级科技进步奖
        case "scientifiAchievements.08":
          this.columns = [
            {
              title: "项目名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "奖励名称",
              key: "secondName",
            },
            {
              title: "奖励等级",
              key: "rewardLevelDesc",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //詹天佑奖
        case "scientifiAchievements.09":
          this.columns = [
            {
              title: "项目名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "奖励名称",
              key: "secondName",
            },
            {
              title: "获奖时间",
              key: "completedDate",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //专著丛书
        case "scientifiAchievements.10":
          this.columns = [
            {
              title: "专著书名",
              key: "fileName",
              width: "180",
            },
            {
              title: "出版社",
              key: "secondName",
            },
            {
              title: "书号ISBN",
              key: "fileNumber",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //集体荣誉
        case "scientifiAchievements.11":
          this.columns = [
            {
              title: "荣誉名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //优秀经验
        case "scientifiAchievements.12":
          this.columns = [
            {
              title: "经验名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "完成人",
              key: "completedBy",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
        //四新应用、微创新、其他
        default:
          this.columns = [
            {
              title: "成果名称",
              key: "fileName",
              width: "180",
            },
            {
              title: "完成人",
              key: "completedBy",
            },
            {
              title: "关联公司",
              key: "companyName",
              width: "100",
            },
            {
              title: "关联项目",
              key: "proName",
              width: "100",
              align: "left",
            },
          ];
          break;
      }
    },
  },
};
